package org.shunfeng.dao;

import org.shunfeng.pojo.Delivery;
import org.shunfeng.pojo.SysUser;

import java.sql.SQLException;
import java.util.List;

public interface DeliveryListDao {

    List<Delivery> querydeliveryListByUserId(Integer userId) throws SQLException;

    int addDelivery(String deliveryName, String phone, String address, String sendTime, Integer companyId, Integer userId, String state) throws SQLException;

    int deleteDelivery(String Id) throws SQLException;

    Delivery queryUserByDeliveryId(Integer id) throws SQLException;

    int updateDelivery(String deliveryName, String phone, String address, String sendTime, Integer companyId, Integer userId, String state, String deliveryId) throws SQLException;
}
